package com.zyh.service;

import com.zyh.dao.IUserDao;
import com.zyh.service.impl.UserServiceImpl;


public class UserServiceFactory {
    public static IUserService getUserService(IUserDao userDao) {
        System.out.println("执行了静态工厂的代码...");
        UserServiceImpl userService = new UserServiceImpl();
        userService.setUserDao(userDao);
        return userService;
    }
}
